

import bpy
import nodeitems_utils
from bpy.types import Operator, Menu






class C_节点子菜单_物体(Menu):
	bl_idname = "node.menu_particle_system"
	bl_label = "粒子系统"
	
	def draw(self, context):
		layout = self.layout

		#创建数据
		layout.separator()
		layout.label(text='创建')
		layout.operator('node.global_node_particle_system')
		layout.operator('node.global_node_export_bl_particle_caches')

		#取数据
		layout.separator()
		layout.label(text='取数据')
		'''layout.operator('node.global_node_get_object', icon='OBJECT_DATA')
		layout.operator('node.node_optional_objects', icon='RESTRICT_SELECT_OFF')
		layout.operator('node.global_node_get_mesh', icon='MESH_DATA')'''
		layout.operator('node.global_node_particle_age', icon='PREVIEW_RANGE')
		
		
		
		
		#编辑数据
		layout.separator()
		layout.label(text='编辑')
		layout.operator('node.global_node_particle_emission')
		layout.operator('node.global_node_particle_member_expansion')
		layout.operator('node.global_node_particle_member_fold')
		
		layout.operator('node.global_node_particle_physics')
		layout.operator('node.global_node_particle_render')
		
		




classes = (

	C_节点子菜单_物体,
	
)

def register():
	for c in classes:
		bpy.utils.register_class(c)

def unregister():
	for c in classes:
		bpy.utils.unregister_class(c)

	



